home *** CD-ROM | disk | FTP | other *** search
/ Oh!X 2000 Spring / Oh!X 2000 Spring Special CD-ROM (Japan) (Part 2).7z / Oh!X 2000 Spring Special CD-ROM (Japan) (Part 2).bin / DXF / samples / multimedia / dplay / src / duel / dputil.h < prev    next >
C/C++ Source or Header  |  1999-03-09  |  2KB  |  42 lines

  1. //-----------------------------------------------------------------------------
  2. // File: DPUtil.h
  3. //
  4. // Desc: Communication routines include file
  5. //
  6. // Copyright (C) 1995-1999 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8. #define IDIRECTPLAY2_OR_GREATER
  9. #include <dplay.h>
  10.  
  11.  
  12. //-----------------------------------------------------------------------------
  13. // Prototypes
  14. //-----------------------------------------------------------------------------
  15. HRESULT DPUtil_FreeDirectPlay();
  16. HRESULT DPUtil_InitDirectPlay( VOID* pCon );
  17. HRESULT DPUtil_CreatePlayer( DPID* ppidID, LPTSTR pPlayerName, HANDLE hEvent, 
  18.                            VOID* pData, DWORD dwDataSize );
  19. HRESULT DPUtil_CreateSession( TCHAR* strSessionName );
  20. HRESULT DPUtil_DestroyPlayer( DPID pid );
  21. HRESULT DPUtil_EnumPlayers( GUID* pSessionGuid,
  22.                           LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, 
  23.                           VOID* pContext, DWORD dwFlags );
  24. HRESULT DPUtil_EnumSessions( DWORD dwTimeout,
  25.                            LPDPENUMSESSIONSCALLBACK2 lpEnumCallback, 
  26.                            VOID* pContext, DWORD dwFlags );
  27. HRESULT DPUtil_GetSessionDesc();
  28. BOOL    DPUtil_IsDPlayInitialized();
  29. HRESULT DPUtil_OpenSession( GUID* pSessionGuid );
  30. HRESULT DPUtil_Receive( DPID* pidFrom, DPID* pidTo, DWORD dwFlags, VOID* pData, 
  31.                       DWORD* pdwDataSize );
  32. HRESULT DPUtil_Release();
  33. HRESULT DPUtil_Send( DPID idFrom, DPID idTo, DWORD dwFlags, VOID* pData, 
  34.                    DWORD dwDataSize );
  35. HRESULT DPUtil_SetPlayerLocalData( DPID pid, VOID* pData, DWORD dwSize );
  36. HRESULT DPUtil_GetPlayerLocalData( DPID pid, VOID* pData, DWORD* pdwDataSize );
  37.  
  38.  
  39.  
  40.  
  41.  
  42.